<?php
namespace app\admin\validate;

use think\Validate;

class GameArea extends Validate
{
    protected $rule = [
        'gid'              => 'require|number',
        'sid'           => 'require|number',
        'sname'            => 'require',
        'open_time'        => 'require|date'
    ];

    protected $message = [
        'gid.require'              => '请输入选择正确的游戏',
        'gid.number'               => '游戏信息不符',
        'sid.require'           => '请输入区服ID',
        'sid.number'            => '区服ID必须为数字',
        'sname.require'            => '请输入游戏区服名称',
        'open_time.require'        => '请输入开服时间',
        'open_time.date'           => '请输入正确的开服时间'
    ];
}